package org.example.service;

import org.example.entity.SysMenu;
import org.example.mapper.EditMenuMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class EditMenuService {
    @Resource
    private EditMenuMapper editMenuMapper;

    public void editMenu(SysMenu sysMenu){
        editMenuMapper.updateById(sysMenu);
    }

    public SysMenu getMenuById(Integer id){
       return editMenuMapper.selectById(id);
    }

}
